package com.mytrip.service;

import java.util.List;

import com.mytrip.base.service.BaseManager;
import com.mytrip.model.BackOperator;
import com.mytrip.model.Module;

public interface BackOperatorManager extends BaseManager {
	
	public BackOperator saveBackOperator(BackOperator backOperator);
	
	public void removeBackOperator(BackOperator backOperator);
	
	public List<BackOperator> findBackOperator();
	
	public BackOperator getBackOperatorById(Long id);

	public void saveBackOperatorSelective(BackOperator backOperator);
	

	public void saveBackOperatorAndBackOperatorCategory(
			BackOperator backOperator, Integer[] categorys,Long modifyBackOperatorId,Long[] roles);

	public void saveBackOperatorAndBackOperatorCategorySelective(
			BackOperator backOperator, Integer[] categorys,
			Long modifyBackOperatorId,Long[] roles);

	public BackOperator setMerchantAndCategory(BackOperator op,Integer defaultAdminSiteId);

	public Integer countBackOperatorByUserName(String userName);

	public List<Module> getModuleListByBackOperatorId(Long id);

	public BackOperator login(String userName, String password, Integer defaultAdminSiteId);
	
	public BackOperator setAdminMerchantAndCategory(BackOperator op,Integer defaultAdminSiteId);
	
	public BackOperator checkLogin(String userName, String password);
	
}
